<div id="main">
    <div class="container-fluid">
        <div class="page-header">
        	<div class="pull-left">
        		<h1>账户审核</h1>
        	</div>
        	<div class="pull-right">
        		<ul class="stats">
        			<li class='lightred'>
        				<i class="icon-calendar"></i>
        				<div class="details">
        					<span class="big"></span>
        					<span></span>
        				</div>
        			</li>
        		</ul>
        	</div>
        </div>
        <div class="breadcrumbs">
        	<ul>
        		<li>
        			<a href="javascript:void(0);">后台管理</a>
        			<i class="icon-angle-right"></i>
        		</li>
        		<li>
        			<a href="javascript:void(0);">账户审核</a>
        			<i class="icon-angle-right"></i>
        		</li>
        		<li>
        			<a href="javascript:void(0);">账户列表</a>
        		</li>
        	</ul>
        	<div class="close-bread">
        		<a href="#"><i class="icon-remove"></i></a>
        	</div>
        </div>
        <div class="row-fluid">
        	<div class="span12">
        		<div class="box box-color box-bordered">
        			<div class="box-title">
        				<h3>
        					<i class="icon-th-list"></i>
        					账户列表
        				</h3>
        			</div>
        			<div class="box-content nopadding">
        				<table class="table table-hover table-nomargin dataTable table-bordered" width="100%">
        					<thead>
        						<tr>
        							<th>所属pms</th>
        							<th>酒店名称/公司名称</th>
        							<th>开户行</th>
        							<th>账户名称</th>
                                    <th>银行账号</th>
                                    <th>接收款通知手机号</th>
                                    <th>操作时间</th>
                                    <th>状态</th>
                                    <th>操作</th>
        						</tr>
        					</thead>
                            <?
                                foreach($re as $k=>$v){
                                    ?>
                                    <tr>
            							<td><?=$v['userName']?></td>
            							<td><?=$v['hotelName']?></td>
            							<td><?=$v['bankName']?></td>
            							<td><?=$v['accountName']?></td>
            							<td><?=$v['bankaccount']?></td>
            							<td><?=$v['phone']?></td>
                                        <td><?=$v['created']?></td>
            							<td>
                                            <?
                                            if($v['status']==0){
                                                echo '<font color="red">未审核</font>';
                                            }elseif($v['status']==1){
                                                echo '<font color="green">正常</font>';
                                            }elseif($v['status']==2){
                                                echo '<font color="#B22222">未通过</font>';
                                            }
                                            ?>
                                        </td>
            							<td>
                                        <?
                                        if($v['status']==0){?>
                                            <a href="javascript:pub_alert_confirm(this,'确定该操作？','<?=$this->url('system/financialEdit?id='.$v['id'].'&status=1')?>');" class="btn btn-small btn-danger" style="background-color: green;">通过审核</a>
                                            <a href="javascript:pub_alert_confirm(this,'确定该操作？','<?=$this->url('system/financialEdit?id='.$v['id'].'&status=2')?>');" class="btn btn-small btn-danger" style="background-color: gary;">审核不通过</a>
                                        <?}
                                        ?>
                                        </td>
            						</tr>
                                    <?
                                }
                            ?>
        				</table>
        			</div>
        		</div>
        	</div>
        </div>
    </div>
</div>